powered by
The is.timed function tells if a boost.mutex object has a timeout. The timeout function tells how long a mutex will wait for a timeout.
is.timed
boost.mutex
timeout
is.timed(m) timeout(m)
is.timed returns TRUE if the object has a timeout and FALSE
TRUE
FALSE
otherwise. If a timeout has been set timeout returns the number of seconds a boost.mutex object will attempt to acquire a lock and NULL otherwise.
NULL
a boost.mutex object to get timeout information for
Michael J. Kane <bigmemoryauthors@gmail.com>
synchronicity
x = boost.mutex(timeout=5) y = boost.mutex() print(is.timed(x)) print(is.timed(y)) print(timeout(x)) print(timeout(y))
Run the code above in your browser using DataLab